package com.seal.tsms.exam.entity;

import com.seal.tsms.base.entity.IdEntity;

import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

/**
 * Created by liuyinping on 2016/6/3.
 */
@Entity
@Table(name = "tb_stage")
public class Stage extends IdEntity {
    private String name;//阶段名称
    private Profession profession;//所属科目

    public String getName() {
        return name;
    }
    public void setName(String name) {
        this.name = name;
    }
    @ManyToOne
    @JoinColumn(name = "profession_id")
    public Profession getProfession() {
        return profession;
    }

    public void setProfession(Profession profession) {
        this.profession = profession;
    }
}
